//
//  ConfirmSuccessViewController.m
//  NewPro
//
//  Created by RYX on 2018/10/26.
//  Copyright © 2018年 何荧红. All rights reserved.
//

#import "ConfirmSuccessViewController.h"
#import "NewHomeViewController.h"
#import "MyCenterVC.h"
#import "InvitePartnerViewController.h"
#import "SettingViewController.h"
@interface ConfirmSuccessViewController ()

@end

@implementation ConfirmSuccessViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setNavBarWithTitle:@"认证成功"];
    
}


#pragma mark - 邀请合伙人
- (IBAction)onInviteBtn:(UIButton *)sender {
    
    InvitePartnerViewController *VC = [[InvitePartnerViewController alloc] init];
    [self.navigationController pushViewController:VC animated:YES];
}

#pragma mark - 返回首页
- (IBAction)onGoHeaderBtn:(UIButton *)sender {
    
    [self.navigationController popToRootViewControllerAnimated:YES];
    
    self.navigationController.tabBarController.selectedIndex = 0;
    
}

#pragma mark - 返回
- (void)back{
    
    UINavigationController *nav = self.navigationController;
    
    NSMutableArray *viewControllers = [[NSMutableArray alloc]init];
    
    for (UIViewController *vc in [nav viewControllers]) {
        
        [viewControllers addObject:vc];
        
        if ([vc isKindOfClass:[MyCenterVC class]] || [vc isKindOfClass:[NewHomeViewController class]] || [SettingViewController class]) {

            break;
        }
    }
    
    [nav setViewControllers:viewControllers animated:YES];
    
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    self.fd_interactivePopDisabled = YES;
}


@end
